package com.varian.log.config;

import com.varian.log.aspect.ApiLogAspect;
import com.varian.log.filter.ApiLoggerFilter;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author ben
 * @since 2024/7/22
 */
@AutoConfiguration
public class LogAutoConfig {

    @Bean
    public ApiLogAspect apiLogAspect(){
        return new ApiLogAspect();
    }

    @Bean
    public ApiLoggerFilter apiLoggerFilter(){
        return new ApiLoggerFilter();
    }
}
